<?php

namespace SisesporteAdmin\Form;

use \Zend\Form\Form;

class ConsultarEstagiarioForm extends Form {

    public function __construct($entity = NULL) {
        parent::__construct('estagiario');
        $this->entity = $entity;

        $this->setAttribute('method', 'post');
        //$this->setInputFilter(new ProfessorFilter());

        $this->add(array(
            'name' => 'noPessoa',
            'options' => array(
                'type' => 'text',
                'label' => 'Nome Completo*:'
            ),
            'attributes' => array(
                'id' => 'noPessoa',
                'class' => 'input-xxlarge'
            )
        ));

        $this->add(array(
            'name' => 'nuCpf',
            'options' => array(
                'type' => 'text',
                'label' => 'CPF:'
            ),
            'attributes' => array(
                'id' => 'nuCpf',
                'class' => 'input-medium'
            )
        ));

        $this->add(array(
                'name' => 'coContrato',
                'options' => array(
                        'type' => 'text',
                        'label' => 'N° Contrato:'
                ),
                'attributes' => array(
                        'id' => 'coContrato',
                        'class' => 'input-medium'
                )
        ));

        $this->add(array(
                'name' => 'novo',
                'type' => 'Zend\Form\Element\Submit',
                'attributes' => array(
                        'value' => 'Novo Estagiário',
                        'title' => 'Novo Estagiário',
                        'class' => 'btn btn-primary pull-right'
                )
        ));

        $this->add(array(
                'name' => 'limpar',
                'type' => 'Zend\Form\Element\Submit',
                'attributes' => array(
                        'value' => 'Limpar',
                        'title' => 'Limpar',
                        'class' => 'btn btn-primary pull-right'
                )
        ));

        $this->add(array(
                'name' => 'consultar',
                'type' => 'Zend\Form\Element\Submit',
                'attributes' => array(
                        'value' => 'Consultar',
                        'title' => 'Consultar',
                        'class' => 'btn btn-primary pull-right'
                )
        ));

        $this->add(array(
                'name' => 'cadastrar',
                'type' => 'Zend\Form\Element\Submit',
                'attributes' => array(
                        'value' => 'Cadastrar',
                        'title' => 'Cadastrar',
                        'class' => 'btn btn-primary pull-right'
                )
        ));
    }

}
